package lwj;

public class Lab {
	
	    static double great = 20; //优的补助价格
	    static double good = Math.ceil(great*0.75); //良的补助价格
	    static double pass = Math.ceil(great*0.5); //及格的补助价格
	    //向上取整：Math.ceil()
	    private String name;
	    private int room;
	    private Score score; //分数列表

	    public Lab(String name,int room){  //使用默认的补助价格
	        //this.Buzhu = Budge;
	        this.name = name;
	        this.room = room;
	    }

	    public Lab(double buzhu,String name,int room){ //自定义补助价格
	        Lab.great = buzhu;
	        this.name = name;
	        this.room = room;
	    }

	    public void setRoom(int room) { this.room = room; }
	    public void setName(String name) {
	        this.name = name;
	    }
	    public void setScore(Score score) {
	        this.score = score;
	    }

	    public double getGreat() {
	        return great;
	    }
	    public double getGood() {
	        return good;
	    }
	    public double getPass() {
	        return pass;
	    }
	    public int getRoom() {
	        return room;
	    }
	    public String getName() {
	        return name;
	    }
	    public Score getScore(){
	        return score;
	    }

	
}
